home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5796 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: esb.bbn.com!user
  2. From: rshapiro@bbn.com (R Shapiro)
  3. Newsgroups: comp.sys.mac.programmer.codewarrior,comp.lang.c++
  4. Subject: Re: using a template parameter as a qualifier -- legal or not?
  5. Date: Tue, 06 Feb 1996 17:11:13 -0500
  6. Organization: BBN
  7. Message-ID: <rshapiro-0602961711130001@esb.bbn.com>
  8. References: <rshapiro-0602961258310001@esb.bbn.com> <3117C2B0.41C6@tiger.physics.utoronto.ca>
  9. NNTP-Posting-Host: esb.bbn.com
  10.  
  11. In article <3117C2B0.41C6@tiger.physics.utoronto.ca>, Andrew Datars
  12. <datars@tiger.physics.utoronto.ca> wrote:
  13.  
  14. >R Shapiro wrote:
  15. >> 
  16. >> I'd like to use the formal argument to a template as the qualifier of a
  17. >> qualified typename within the template. This doesn't work in CodeWarrior
  18. >> 8, it does work in VC++ 4.0, and I can't tell from ARM whether or not it
  19. >> *should* work.
  20. >> [example, deleted]
  21. >
  22.  
  23.  
  24. > I have not used CodeWarrior. So
  25. >I can't really comment on your question directly. I know that
  26. >for most compilers the above DOES work.
  27.  
  28. My first question is, *should* this work, ie is it legal according to the
  29. more or less official C++ standard? I can't tell from my reading of ARM
  30. and the relevant portions of the draft standard. What's your take?
  31.  
  32. The fact that other compilers support it isn't quite what I'm after, since
  33. some compilers support things that are definitely not following the
  34. standard. If this is a bug in CodeWarrior, I'll report it and Metrowerks
  35. will probably fix it. But I still don't know if it really is a bug or not.
  36.  
  37. -- 
  38. rs/rshapiro@bbn.com
  39.